package com.amit.struts;

public class EmployeeServiceImpl implements EmployeeService {

	@Override
	public EmployeeTO verifyEmployee(String un, String pw)
			throws EmployeeNotFoundException {
		
		EmployeeDAO edao=DAOFactory.getEmployee();
		EmployeeTO eto=edao.verifyEmployee(un,pw);
		
		if(eto==null)
		{
			throw new EmployeeNotFoundException();
		}
		
		
		
		return eto;
	}

}
